export default {
  users(state) {
    return state.users.map((item) => {
      let user = {
        name: item.login,
        avatar: item.avatar_url,
        home: item.html_url,
        ...item,
      };

      delete user.login;
      delete user.avatar_url;
      delete user.html_url;

      return user;
    });
  },
};
